package com.chuangjiangx.member.score.dao.model;

import java.math.BigDecimal;
import java.util.Date;

public class InMbrScoreGrandTotalRule {

    private Long id;


    private String name;


    private Byte type;


    private Byte scope;


    private BigDecimal amount;


    private Long score;


    private Byte enable;


    private Date createTime;

    private Date updateTime;


    private Long merchantId;


    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.id
     *
     * @param id the value for mbr_score_grand_total_rule.id
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.name
     *
     * @return the value of mbr_score_grand_total_rule.name
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public String getName() {
        return name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.name
     *
     * @param name the value for mbr_score_grand_total_rule.name
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.type
     *
     * @return the value of mbr_score_grand_total_rule.type
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public Byte getType() {
        return type;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.type
     *
     * @param type the value for mbr_score_grand_total_rule.type
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setType(Byte type) {
        this.type = type;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.scope
     *
     * @return the value of mbr_score_grand_total_rule.scope
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public Byte getScope() {
        return scope;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.scope
     *
     * @param scope the value for mbr_score_grand_total_rule.scope
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setScope(Byte scope) {
        this.scope = scope;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.amount
     *
     * @return the value of mbr_score_grand_total_rule.amount
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.amount
     *
     * @param amount the value for mbr_score_grand_total_rule.amount
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.score
     *
     * @return the value of mbr_score_grand_total_rule.score
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public Long getScore() {
        return score;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.score
     *
     * @param score the value for mbr_score_grand_total_rule.score
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setScore(Long score) {
        this.score = score;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.enable
     *
     * @return the value of mbr_score_grand_total_rule.enable
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public Byte getEnable() {
        return enable;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.enable
     *
     * @param enable the value for mbr_score_grand_total_rule.enable
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setEnable(Byte enable) {
        this.enable = enable;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.create_time
     *
     * @return the value of mbr_score_grand_total_rule.create_time
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.create_time
     *
     * @param createTime the value for mbr_score_grand_total_rule.create_time
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.update_time
     *
     * @return the value of mbr_score_grand_total_rule.update_time
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.update_time
     *
     * @param updateTime the value for mbr_score_grand_total_rule.update_time
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column mbr_score_grand_total_rule.merchant_id
     *
     * @return the value of mbr_score_grand_total_rule.merchant_id
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public Long getMerchantId() {
        return merchantId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column mbr_score_grand_total_rule.merchant_id
     *
     * @param merchantId the value for mbr_score_grand_total_rule.merchant_id
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mbr_score_grand_total_rule
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", type=").append(type);
        sb.append(", scope=").append(scope);
        sb.append(", amount=").append(amount);
        sb.append(", score=").append(score);
        sb.append(", enable=").append(enable);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", merchantId=").append(merchantId);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mbr_score_grand_total_rule
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMbrScoreGrandTotalRule other = (InMbrScoreGrandTotalRule) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getScope() == null ? other.getScope() == null : this.getScope().equals(other.getScope()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getEnable() == null ? other.getEnable() == null : this.getEnable().equals(other.getEnable()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getMerchantId() == null ? other.getMerchantId() == null : this.getMerchantId().equals(other.getMerchantId()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mbr_score_grand_total_rule
     *
     * @mbg.generated Sat Jan 20 13:41:10 CST 2018
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getScope() == null) ? 0 : getScope().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getEnable() == null) ? 0 : getEnable().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getMerchantId() == null) ? 0 : getMerchantId().hashCode());
        return result;
    }
}